Skip to content

Add PR preview deployment workflows#491

Merged
tortmayr merged 1 commit into
masterfrom
pr-preview-workflows
Apr 29, 2026
Merged

Add PR preview deployment workflows#491
tortmayr merged 1 commit into
masterfrom
pr-preview-workflows

Conversation

@tortmayr

Copy link
Copy Markdown
Contributor

Summary

  • Add GitHub Actions workflows to deploy the browser example to GitHub Pages on each PR
  • Uses a build/deploy security split: the build runs in the PR context (read-only), the deploy runs as a trusted workflow_run
  • Cleanup job removes the preview when the PR is closed

Prerequisite for #490 — needs to be on master so workflow_run triggers work.

Test plan

Add GitHub Actions workflows to deploy the browser example to GitHub
Pages for each PR, enabling live previews for reviewers.

- pr-preview-build.yml: builds the example on pull_request (read-only)
- pr-preview-deploy.yml: deploys to gh-pages on workflow_run, cleans
  up on PR close

Uses a build/deploy split for safe fork PR handling.
@tortmayr tortmayr merged commit 34d200b into master Apr 29, 2026
6 checks passed
@tortmayr tortmayr deleted the pr-preview-workflows branch April 29, 2026 16:56
github-actions Bot added a commit that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant